﻿CREATE FUNCTION [config].[GetServerMailBox]( )
	RETURNS NVARCHAR (100)
AS
BEGIN
	DECLARE @ReturnValue nvarchar(100)

	SELECT
		@ReturnValue = [email_address]
	FROM [msdb]..sysoperators
	WHERE([name] = 'SQLService')

	RETURN(@ReturnValue)
END